﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace iS3.DAL
{
    public class DGObjectTemplate
    {
        public List<inheritClass> inherit { get; set; }
        public List<dtNodeClass> dTNodes { get; set; }
        public List<dtEdgeClass> dTEdges { get; set; }
        public class inheritClass
        {
            public string root { get; set; }
            public List<string> children { get; set; }
        }
        public class dtNodeClass
        {
            public string DMTCode { get; set; }
            public bool iSDGObjectTemplate { get; set; }
        }
        public class dtEdgeClass
        {
            public string fromDMTCode { get; set; }
            public string toDMTCode { get; set; }
            public relationClass relation { get; set; }
            public class relationClass
            {
                public string modelTypeFirst { get; set; }
                public string modelKeyFirst { get; set; }
                public string modelTypeSecond { get; set; }
                public string modelKeySecond { get; set; }
                public string relationType { get; set; }
            }
        }
    }
}
